package entry

import "strings"

func ParseRequest(req string, entry *LogEntry) {
	parts := strings.SplitN(req, " ", 3)
	if len(parts) > 1 {
		entry.Method = parts[0]
		entry.Url = parts[1]
	}
	if len(parts) > 2 {
		entry.Protocol = parts[2]
	}
}
